/* Copyright 2010 Google Inc. Copyright 2016 Akamai Technolgies Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. See the source code here: http://code.google.com/p/episodes/ */ !function(){function e(e,s){function u(){this.data={},this.value=[]}function d(e,t){for(var n={},r=s.getElementsByTagName(t),o=0;o0){var e=[b.domainLookupEnd-b.domainLookupStart,b.connectStart-b.domainLookupStart,b.connectEnd-b.domainLookupStart,b.secureConnectionStart?b.secureConnectionStart-b.domainLookupStart:null,b.requestStart-b.domainLookupStart,b.responseStart-b.domainLookupStart,b.responseEnd-b.domainLookupStart,b.domLoading-b.domainLookupStart,b.domInteractive-b.domainLookupStart,n(b),b.domContentLoadedEventStart-b.domainLookupStart,b.domContentLoadedEventEnd-b.domainLookupStart,b.domComplete-b.domainLookupStart,b.loadEventStart-b.domainLookupStart,b.loadEventEnd-b.domainLookupStart],r={};r[f.baseurl]=t(e),h(r)}else b.loadEventEnd<=0&&setTimeout(T,100)};T()}else{var L=function(){if("AKSB"in e&&"measures"in e.AKSB&&"t_plt"in e.AKSB.measures){var t=[null,null,null,0,null,null,null,null,null,null,null,null,null,e.AKSB.measures.t_onload,e.AKSB.measures.t_plt],n={};n[f.baseurl]=t,h(n)}else setTimeout(L,100)};L()}},f.getResourceTimingAPI=function(){if("performance"in e){if("getEntriesByType"in e.performance)return e.performance.getEntriesByType("resource");if("webkitGetEntriesByType"in e.performance)return e.performance.webkitGetEntriesByType("resource")}return null},u.prototype.insert=function(e,t){for(var n=this.data;e;){var r=this.get_prefix(e,Object.keys(n)),o=r[0],a=r[1];if(!o||"string"!=typeof o||"string"!=typeof a)break;var i=o.length;if(o!==a){var s=a.slice(i,a.length),u=n[a];u===this.value&&(u=JSON.parse(JSON.stringify(u))),n[o]={},n[o][s]=u,delete n[a]}else n[o]===this.value&&(n[o]=JSON.parse(JSON.stringify(this.value)));e=e.slice(i,e.length),n=n[o]}return n[e]=e?t:null,!0},u.prototype.get_prefix=function(e,t){function n(e,t){return e.lengtht.length?1:0}function r(e,t){return""===t||null!=e&&null!=t&&(e=String(e),t=String(t),e.length>=t.length&&e.slice(0,t.length)===t)}if(t.sort(n),"undefined"!=typeof e){var o=e[0];for(var a in t)if(r(t[a],o))for(var i=e.length;i>=1;i--)if(r(t[a],e.slice(0,i)))return[e.slice(0,i),t[a]]}return["",null]};var c=e.AKSB.prof.akTT;if(e.performance&&(e.performance.getEntries||e.performance.webkitGetEntries))if("R"===c)f.init();else{if("O"!==c&&void 0!==c||!(e.document.location.search.search("akamai-rum-rt=on")>=0)&&10<=100*Math.random())return;f.init()}}}function t(e){for(var t=0;ts)&&(e[t]=null);return e}function n(e){if("performance"in window&&"function"==typeof window.performance.getEntriesByType)for(var t=window.performance.getEntriesByType("paint"),n=0;n0&&(u.measures.fp=r),u.measure("dl","domainLookupStart","domLoading"),u.measure("di","domainLookupStart","domInteractive"),u.measure("dlS","domainLookupStart","domContentLoadedEventStart"),u.measure("dlE","domainLookupStart","domContentLoadedEventEnd"),u.measure("dc","domainLookupStart","domComplete"),u.measure("leS","domainLookupStart","loadEventStart"),u.measure("leE","domainLookupStart","loadEventEnd"),t()},s=function(){o&&(0===o.type||1===o.type)&&a&&a.loadEventEnd>0?i():a&&a.loadEventEnd<=0&&setTimeout(s,100)};s()}},u.aksbVersion=function(){return""+(void 0===u.prof.blver?0:u.prof.blver)+":"+(void 0===u.version?0:u.version)},u.sendBeacon=function(n,d){n=n||f;var p="";u.bf=u.bitField(),u.createBitField();var c={dE:u.measures.dE,cS:u.measures.cS,cE:u.measures.cE,rqS:u.measures.rqS,rsS:"undefined"!=typeof u.measures.rsS?u.measures.rsS:u.measures.t_fb,rsE:u.measures.rsE,sS:u.measures.sS,dl:u.measures.dl,di:u.measures.di,fp:u.measures.fp,dlS:u.measures.dlS,dlE:"undefined"!=typeof u.measures.dlE?u.measures.dlE:u.measures.t_onready,dc:u.measures.dc,leS:"undefined"!=typeof u.measures.leS?u.measures.leS:u.measures.t_onload,leE:"undefined"!=typeof u.measures.leE?u.measures.leE:u.measures.t_plt,to:u.measures.to,ol:u.prof.originlat,cr:u.prof.clientrtt,mt:a,mb:i,b:u.bf.get(),u:m,ua:r,pl:o,us:u.prof.ustr,gh:u.prof.ghostip,t:u.prof.token,rid:u.prof.requestid,r:u.prof.region,akM:u.prof.akM,akN:u.prof.akN,vc:u.aksbVersion(),bpcip:u.getMangledAddress(),akTX:u.prof.akTX,akTI:u.prof.akTI,ai:u.prof.ai,pmgn:u.prof.pmgn,pmgi:u.prof.pmgi,pmp:u.prof.pmp};if(c)for(var l in c)p+="&"+escape(l)+"="+("undefined"==typeof c[l]?"":c[l]);if(p){if(p=p.substring(1),d)for(var S in d)d.hasOwnProperty(S)&&(p+="&"+escape(S)+"="+escape(d[S]));var v=new Image;return v.src=n+"?"+p,e(t,s),v.src}return""},u.bitField=function(e){var t=Math.abs(e),n=function(){};return n.prototype.set=function(e){return this.hasbit(e)?t:t|=e},n.prototype.hasbit=function(e){return e>t?0:t&e},n.prototype.get=function(){return t},new n},u.createBitField=function(){var e={MS_NT:1,IPv6:16,FEO:32,VIA_SPDY:64,VIS_HIDDEN:128,VIS_VISIBLE:256,VIS_PRERENDERED:512,QUERY_TRUNCATED:2048,RUM_AT_ORIGIN:4096,ONLOAD_HAS_FIRED:8192,VIA_HTTP_TWO:131072,TXN_ENABLED:262144,RUA_APPLIED:524288,VIA_QUIC:1048576};u.bf.set(e.MS_NT);var t=u.prof.protocol;void 0!==t&&("h2"==t.slice(0,2)?u.bf.set(e.VIA_HTTP_TWO):"spdy"==t.slice(0,4)&&u.bf.set(e.VIA_SPDY));var n=u.prof.qc;"string"==typeof n&&""!==n&&"0"!==n&&u.bf.set(e.VIA_QUIC),p&&u.bf.set(e.IPv6),l&&u.bf.set(e.FEO),"hidden"===c&&u.bf.set(e.VIS_HIDDEN),"visible"===c&&u.bf.set(e.VIS_VISIBLE),"prerendered"===c&&u.bf.set(e.VIS_PRERENDERED),S&&u.bf.set(e.QUERY_TRUNCATED),u.prof.origin===!0&&u.bf.set(e.RUM_AT_ORIGIN),u.onloadHasFired===!0&&u.bf.set(e.ONLOAD_HAS_FIRED),"true"===u.prof.ra&&u.bf.set(e.RUA_APPLIED),u.prof.akTT&&"O"!=u.prof.akTT&&u.bf.set(e.TXN_ENABLED)},u.findStartWebTiming=function(){var e=void 0,t=u.getNavTimingAPI();return"undefined"!=typeof t&&"undefined"!=typeof t.timing&&"undefined"!=typeof t.timing.navigationStart&&(e=r.match(/Firefox\/[78]\./i)?t.timing.unloadEventStart||t.timing.fetchStart:t.timing.navigationStart),e},u.onready=function(){u.mark("onready",(new Date).getTime()),u.measure("t_onready","starttime","onready")},u.onload=function(){u.mark("onload",(new Date).getTime()),u.autorun&&u.done()},u.addEventListener=function(e,n,r){return"undefined"!=typeof t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener?t.addEventListener(e,n,r):void 0},u.getNavTimingAPI=function(){return t.performance||t.mozPerformance||t.msPerformance||t.webkitPerformance},u.init()}}(window);var s=2147483647}();